<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,user-scalable=no,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" name="viewport">
    <title>和高校应用下载</title>
    <link href="css/style.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="bg">
    <a onclick="javascript:window.location.href = 'http://183.230.30.245:50003/push_campus/service/api/common/client/download?fileName=CqAndCampus.apk'" class="android-btn"></a>
    <a href="https://itunes.apple.com/us/app/he-gao-xiao/id1115554830?l=zh&ls=1&mt=8" class="iphone-btn"></a>
</div>
<div class="download-bg"></div>
</body>
<script src="js/jquery-1.11.2.min.js"></script>
<script>
    var protocol = window.location.protocol;
    var host = window.location.host;
    var index = window.location.pathname.lastIndexOf('/');
    var project = window.location.pathname.split("/")[1];
    var basePath = protocol + "//" + host + "/" + project;
    var ifr = document.createElement('iframe');
    ifr.src = "com.cqmc.hecampus://home.hecampus.cqmc.com";
    ifr.style.display = 'none';
    document.body.appendChild(ifr);
    setTimeout(function() {
        document.body.removeChild(ifr);
    }, 1000);
    //控制屏幕显示
    (function (win,doc) {
        function setSize() {
            doc.documentElement.style.fontSize=20*document.documentElement.clientWidth/375+'px';
        }
        setSize();
        win.addEventListener('resize',setSize,false)
    })(window,document);
    var is_weixin = (function(){return navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1})();
    $(function(){
        if(is_weixin){
            $('.download-bg').show();
            $('.bg').hide();
        }else{
            $('.download-bg').hide();
            $('.bg').show();
        }
    });
</script>
</html>